package com.edu.zhku.wms.controller;

import com.edu.zhku.wms.common.CommonResult;
import com.edu.zhku.wms.dto.WageQueryDto;
import com.edu.zhku.wms.pojo.Wage;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

/**
 * @author Feng
 * @since 2021/11/2 15:47
 */

@RequestMapping("/api/test")
@RestController
public class TestController {

    @PostMapping("/test1")
    public CommonResult test1(@RequestBody @Validated WageQueryDto wageQueryDto) {
        System.out.println(wageQueryDto);
        return CommonResult.success(wageQueryDto);
    }

}
